<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script src="https://cdn.bootcdn.net/ajax/libs/axios/1.3.6/axios.js"></script>
  <!-- <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> -->

  <script>
    // axios({
    //   url: 'http://hmajax.itheima.net/api/province'
    // }).then((result) => {
    //   console.log(result.data.list, 111);
    // })

    // axios.get('http://hmajax.itheima.net/api/province').then(res => {
    //   console.log(res, 1);
    // })

    // axios.get('http://hmajax.itheima.net/api/city', {
    //   params: {
    //     pname: '湖北省'
    //   }
    // }).then(res => {
    //   console.log(res, 2);
    // })

    axios.post("http://hmajax.itheima.net/api/login", {
      username: 'qq12345678',
      password: 'qq12345678'
    }).then(res => {
      console.log(res, 3);
    })
  </script>
</body>

</html>